import request from '@/utils/request'

// 查询公司-商家：客服聊天记录列表
export function listCompanyMerchantChatRecord(query) {
  return request({
    url: '/system/companyMerchantChatRecord/list',
    method: 'get',
    params: query
  })
}

// 查询公司-商家：客服聊天记录详细
export function getCompanyMerchantChatRecord(recordId) {
  return request({
    url: '/system/companyMerchantChatRecord/' + recordId,
    method: 'get'
  })
}

// 新增公司-商家：客服聊天记录
export function addCompanyMerchantChatRecord(data) {
  return request({
    url: '/system/companyMerchantChatRecord',
    method: 'post',
    data: data
  })
}

// 修改公司-商家：客服聊天记录
export function updateCompanyMerchantChatRecord(data) {
  return request({
    url: '/system/companyMerchantChatRecord',
    method: 'put',
    data: data
  })
}

// 删除公司-商家：客服聊天记录
export function delCompanyMerchantChatRecord(recordId) {
  return request({
    url: '/system/companyMerchantChatRecord/' + recordId,
    method: 'delete'
  })
}
